using UnityEngine;
public class EnemyEve : MonoBehaviour{
    public bool isAddEnemy = false; // 是否添加敌人
    public void OnTriggerEnter(Collider other){
        if (other.tag == "Player" && !isAddEnemy){
            Transform player = other.transform;
            Debug.Log("创建怪物");
            isAddEnemy = true;
            BroadcastMessage("onAdd", player);
        }
    }
}